package com.lanyam.travel.base.dao;

import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lanyam.travel.base.entity.PanicBuy;
import com.lanyam.travel.base.entity.vo.PanicBuyVo;
import com.lanyam.travel.base.entity.vo.TravelOrderVo;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author rosson
 * @since 2020-01-27
 */
public interface PanicBuyMapper extends BaseMapper<PanicBuy> {

	@Update("update panic_buy set status = #{status} where id = #{id}")
	void updatePanicBuyStatus(String id, int status);

	Page<PanicBuyVo> getPanicBuyPage(Page<PanicBuyVo> page, @Param("map") Map<String, Object> map);

}
